/* 去除浏览器默认样式 */
*{
	margin: 0px;
	padding: 0px;
}
html {
  font-size: 14px;
}
/* iconfont引入 */
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
/* 去除ul样式 */
.main ul {
  list-style-type:none;
}
body {
  background: url(./bg.jpg);
}
/* 调整.main水平居中 */
.container {
  position: relative;
  padding: 0px 2em;
  /* width: 100%;
  height: 800px; */
}
.main {
  /* position: absolute;
  top: 10%;
  left: 50%;
  width: 500px;
  margin-left: -250px; */
  height: 100%;
  max-width: 600px;
  margin: 36px auto;
  font-size: 1.4em;
}
/* 控制输入区域 */
.function {
  height: 35px;
  width: 100%;
  display: flex;
}
#todo-ipt {
  flex: 85;
  padding-left: 5px;
  overflow: hidden;
}
.function #todo-btn {
  flex: 15;
  max-width: 60px;
  border-left-style: none;
  cursor: pointer;
}
#todo-ipt, #todo-btn {
  box-sizing: border-box;
  border: 1px solid white;
  height: 35px;
  color: white;
  background-color: rgba(0,0,0,0);
  line-height: 35px;
  font-size: 0.55em;
}
/* input框提示文字样式 */
#todo-ipt::-webkit-input-placeholder {
  color: gainsboro;
}
/* input框focus后的样式 */
#todo-ipt:focus {
  outline: none;/*input框focus后的边框*/
}
/* todo列表的样式 */
.todo-ul {
  width: 100%;
  margin-top: 10px;
}
.todo-li {
  width: 100%;
  height: 30px;
  display: flex;
  border: 1px solid white;
  box-sizing: border-box;
  flex-wrap: wrap;
  position: relative;
}
.todo-check {
  flex: 1;
  position: relative;
}
.icon-undo {
  width: 16px;
  height: 16px;
  border: 1px solid white;
  box-sizing: border-box;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -8px 0 0 -8px;
  cursor: pointer;
  color: white;
  font-size: 14px;
  text-align: center;
  line-height: 16px;  
}
.todo-text {
    flex: 8;
    color: white;
    line-height: 30px;
    font-size: 15px;
    overflow: hidden;
}
.todo-menu {
    flex: 1;
    position: relative;
}
.icon-more {
  width: 1em;
  height: 1em;
  /* position: absolute; */
  /* left: 50%;
  top: 50%;
  margin: -8px 0 0 -8px; */
  cursor: pointer;
  margin: 0 auto; 
}
.icon-more-svg {
    color: white;
}
/* 工具栏样式 */
.todo-menutool {
  width: 1.5em;
  border: 1px solid white;
  box-shadow: 1px 2px 4px rgb(195, 194, 194);
  box-sizing: border-box;
  position: absolute;
  right: -1.5em;
  top: 0px;
  display: none;
  /* background-color: rgb(0, 0, 0); */
  z-index: 20;
}
.tool {
  text-align: center;
  margin: 8px 0px;
  cursor: pointer;
  color: white;
}
.colors-red {
  color: red !important;
}
.colors-orange {
  color: orange !important;
}
.colors-white {
  color: white !important;
} 
/* 解决遮罩问题 */
.todo-ul {
  position: relative;
}
.hideElement {
  position:absolute;
  left:0px;
  top:0px; 
  background-color:#000; 
  width:100%;
  height: 100%;
  filter:alpha(opacity=60);  /*设置透明度为60%*/ 
  opacity:0.6;  /*非IE浏览器下设置透明度为60%*/ 
  display:block;
  z-Index:5;
}
/* 提示消息 */
.tip {
  position: fixed;
  top: 0;
  left: 50%;
  /* margin: 0 auto; */
  transform: translate(-50%, 0);
  min-width: 100px;
  padding: 5px;
  height: 30px;
  /* background: rgba(0,0,0,0.1); */
  border-radius: 10px;
  color: #ff6666;
  text-align: center;
  line-height: 30px;
  font-weight: 800;
  font-size: 0.85em;
  display: none;
}
.tip span {display: inline-block;}
.tip-delete {
  color: #ccc;
  cursor: pointer;
}
/* 移动端适配 */
.function, #todo-ipt, #todo-btn, .todo-ul .todo-li, .todo-ul .todo-text{
  height: 3rem;
  line-height: 3rem;
}